<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html style='height:100%;'>
  <head>
    <base href="<%=basePath%>">
    
    <title>园林绿化</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" href="css/vivo.css">
	<link rel="stylesheet" href="css/bootstrap.css">
	<link rel="stylesheet" href="js/bootstrap2/css/bootstrap.min.css">
	<link rel="stylesheet" href="css/common.css">
	<link rel="stylesheet" href="js/font-awesome/css/font-awesome.css">
    <link href="js/select2/select2.min.css" type="text/css" rel="stylesheet" />
	<link rel="stylesheet" type="text/css" href="static/p_house/house_index.css" />
	
	<script src="js/jquery-1.11.1.js"></script>
	<script src="js/select2/select2.min.js"></script>
	<script src="js/bootstrap2/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/layui-v2.1.5/layui/layui.all.js"></script> 
	<script type="text/javascript" src="<%=basePath %>js/My97DatePicker/WdatePicker.js"></script> 
	<!-- 图片放大 -->
<script src="js/postbird-img-glass/postbird-img-glass.js" ></script>
<style type="text/css">
.style_input {
	padding-left: 10px;
}

table {
	border-collapse: collapse
}

.style_box3 {
	border: 0px solid gray;
	padding: 10px 0px;
}
.file-item{
	display: inline-block;
}

</style>
<script src="js/form.js"></script>
<script type="text/javascript">
var landFileList=new Array();//删除附件ids
var isEdit='no';
	$(function(){
		$("#landScapeType").select2();
		getLandScapeData();
		mySubmit("gardensForm",formData,successLandScape);
		if(isEdit=="no"){
			$("#landScape").show();
		} 
	})
	
	function imgLandPlus1(data){
		$("#gardensForm .uploadcancel").css("display","none");
		if(data.length>0){
			$("#jianzhu").show();
		}
		eachInit(data);
	}
	function imgLandPlus2(data){
		$("#gardensForm .uploadcancel").css("display","none");
		if(data.length>0){
			$("#renzao").show();
		}
		eachInit(data);
	}
	function imgLandPlus3(data){
		$("#gardensForm .uploadcancel").css("display","none");
		if(data.length>0){
			$("#shuixi").show();
		}
		eachInit(data);
	}
	
	function eachInit(data){
		//图片放大
		$.each(data, function(i, v) {
			//图片放大
			PostbirdImgGlass.init({
				domSelector : "#" + v.id + " img",
				animation : true,
				//height : '80%',
				myDocument : window.parent.parent.parent
			});
		});
	}
	
	//获取建筑数量下的使用功能集合
		function getLandScapeData() {
			var obj;
			var url = "gardensAfforest/getGardensAfforestByPId";
			//pid:建筑数量id 预留
			var fkProjectid = parent.parent.projectID;
			$.ajaxSettings.async = false;
			$.getJSON(url, {
				fkProjectid :fkProjectid
			}, function(data, status) {
				if (status == "success") {
					var html = "";
					if(data !=null ){
						isEdit = 'yes';
						var name =["植木名称","植木名称","植木名称"];
						var num1 = ["面积数量","棵木数量","棵木数量"];
						var obj = ["lawnArea","woody","trees"];
						var dataArr = [data.lawnAreaList, data.ligneousPlantsList, data.treesPlantsList]
						//添加模板div并赋值
						for(var i=0;i<dataArr.length;i++){
							if(i==0){
								for(var j=0;j<dataArr[i].length;j++){
									html = "<tr><td width=\"75\" class=\"td-right\"><span>"+ name[i]+ "</span></td><td width=\"320\"><input type=\"type\"id=\"\"name=\"useExplain\" value=\""+dataArr[i][j].useExplain+"\"/></td><td width=\"75\" class=\"td-right\"><span>"
										+ num1[i]+ "</span></td><td><input type=\"type\"id=\"\"name=\"useValue\"value=\""+returnFloat(dataArr[i][j].useValue)+"\"/><input type=\"hidden\"id=\"\"name=\"id\" value=\""+dataArr[i][j].id+"\"/> ㎡ "
										+ "<a data-id=\""+dataArr[i][j].id+"\" href=\"javascript:void(0)\"onclick=\"delTrLand(this)\"><i class=\"icon-fullscreen\"></i></a></td></tr>";
									$("#"+obj[i]).append(html);
								}
							}else{
								for(var j=0;j<dataArr[i].length;j++){
									html = "<tr><td width=\"75\" class=\"td-right\"><span>"+ name[i]+ "</span></td><td width=\"320\"><input type=\"type\"id=\"\"name=\"useExplain\" value=\""+dataArr[i][j].useExplain+"\"/></td><td width=\"75\" class=\"td-right\"><span>"
										+ num1[i]+ "</span></td><td><input type=\"type\"id=\"\"name=\"useValue\"value=\""+dataArr[i][j].useValue+"\"/><input type=\"hidden\"id=\"\"name=\"id\" value=\""+dataArr[i][j].id+"\"/> 株 "
										+ "<a data-id=\""+dataArr[i][j].id+"\" href=\"javascript:void(0)\"onclick=\"delTrLand(this)\"><i class=\"icon-fullscreen\"></i></a></td></tr>";
									$("#"+obj[i]).append(html);
								}
							}
						}
						//外键值赋值
						$("#entityId_lawnArea").val(data.lawnArea);
						$("#entityId_herbaceousPlants").val(data.herbaceousPlants);
						$("#entityId_ligneousPlants").val(data.ligneousPlants);
						$("#entityId_treesPlants").val(data.treesPlants);
						$("#gardensForm #entityId_gid").val(data.id);
						//展示附件信息
						getFiles();
						if(data.buildingScenery != null && data.buildingScenery != "" && data.manMadeScenery != null && data.manMadeScenery != "" && data.riverSystemScenery != null && data.riverSystemScenery != ""){
							$("#landScape").show();
						}
							if(data.buildingScenery != null && data.buildingScenery != "" ){
								//建造景观文本
								$("input[name='buildingScenery']").val(data.buildingScenery);
								$("#jianzhu").show();
								
							}
							if(data.manMadeScenery != null && data.manMadeScenery != "" ){
								//人造景观文本
								$("input[name='manMadeScenery']").val(data.manMadeScenery);
								$("#renzao").show();
							}
							
							if(data.riverSystemScenery != null && data.riverSystemScenery != "" ){
								//水系景观文本
								$("input[name='riverSystemScenery']").val(data.riverSystemScenery);
								$("#shuixi").show();
							}
						
						
						//设置只读
						$("#gardensForm").find("input,textarea").attr("readonly",true);
						$("#gardensForm").find("select,.addbtn,[type='file']").attr("disabled",true);
						$("#gardensForm .icon-fullscreen").hide();
						$("#gardensForm .addbtn").attr("disabled",true);
						//隐藏按钮
						$("#gardensForm #btn_div2").show();
						$("#gardensForm #btn_div1").hide();
						//禁止点击上传按钮
						$("#gardensForm div[id^='filePicker']").unbind("click").click(function(){
							return false;
						}).hide();
						
					}
				}
			});
		}
	
	
	function getFiles(){
		var id = $("#gardensForm #entityId_gid").val();
		getFileList(id,"建筑","#imgJz",setLandRFL,imgLandPlus1,imgLandBtnHide);
		getFileList(id,"人造","#imgRz",setLandRFL,imgLandPlus2,imgLandBtnHide);
		getFileList(id,"水系","#imgSx",setLandRFL,imgLandPlus3,imgLandBtnHide);
	}
	//设置待删除附件的值到集合中
	function setLandRFL(id,_this){
		layer.confirm('删除该图片？',{
			title:'警告',
			icon:0,
			shade:[0.1, '#fff']
		},function(){
			landFileList.push(id);
			//删除指定缩略图
			$("#"+id).remove();
			layer.close(layer.index);
		});
	}
	//图片上传成功后隐藏删除按钮
	function imgLandBtnHide(id){
		//隐藏图片删除按钮
		$("#"+id+" span").hide();
		//禁止点击上传按钮
		$("#gardensForm div[id^='filePicker']").unbind("click").click(function(){
			return false;
		}).hide();
	}
	//显示图片删除按钮
	function imgLandBtnShow(){
		//显示图片删除按钮 
		$("div.file-item span").show();
		//禁止点击上传按钮
		$("#gardensForm div[id^='filePicker']").unbind("click").show();
	}
	var optLandScape;
	//optFloorNum操作字段，0：临时保存；1：新增；2：修改
	function saveLandScape(val){
		optLandScape=val;
		if(val==3){
			//解除锁定状态
			var index=layer.confirm('确定开启编辑状态？', {
			 	offset:'20%',
				shade:0
			}, function(){
			  //去除只读开启按钮编辑
			   $("#gardensForm").find("input,textarea").attr("readonly",false);
			   $("#gardensForm").find("select,.addbtn,[type='file']").attr("disabled",false);
			   $("#gardensForm #modifyBtn").hide();
			   $("#gardensForm .hidbtn").addClass("showbtn");
			   $("#gardensForm .icon-fullscreen").show();
			   $("#gardensForm .addbtn").attr("disabled",false);
			   $("#landScape").show();
			   //显示图片删除按钮
			   imgLandBtnShow();
			   layer.close(index);
			});
		}else{
			
			$("#gardensForm").submit();
		}
	}
	
	function showScapeTr(obj){
		var val = $("#landScapeType").val();
		if(val=="0"){
			$("#jianzhu").show();
		}else if(val=="1"){
			$("#renzao").show();
		}else{
			$("#shuixi").show();
		}
	}
	
	function hideTrLand(val){
		
		if(val=="0"){
			$("#jianzhu").hide();
			//清空隐藏域中的值
			$("#fileJz").val("");
			//清空建造景观文本
			$("input[name='buildingScenery']").val("");
			//清空缩略图
			$("#imgJz").find("*").remove();
			//重置插件队列中的值，否则将不能选则之前删除的文件
			upload_fileJz.reset();
		}else if(val=="1"){
			$("#renzao").hide();
			//清空隐藏域中的值
			$("#fileRz").val("");
			//清空建造景观文本
			$("input[name='manMadeScenery']").val("");
			//清空缩略图
			$("#imgRz").find("*").remove();
			upload_fileRz.reset();
		}else{
			$("#shuixi").hide();
			//清空隐藏域中的值
			$("#fileSx").val("");
			//清空建造景观文本
			$("input[name='riverSystemScenery']").val("");
			//清空缩略图
			$("#imgSx").find("*").remove();
			upload_fileSx.reset();
		}
	}
	
	var x;//load弹窗index
	
	//封装表单中的数据
	function formData(){
		x=layer.load(2);
		var t1=$("#lawnArea tr:gt(0)");
		var arr1=new Array();
		for(var i=0;i<t1.length;i++){
			var v=t1[i];
			var area=$(v).find("input[name='useExplain']").val();
			var name1=$(v).find("input[name='useValue']").val();
			var id=$(v).find("input[name='id']").val();
			var lawnArea=$("#entityId_lawnArea").val();
			if (!testNum(name1)) {
				layer.msg("草坪面积中第" + (i + 1) + "行面积数量请输入数值");
				$(v).find("input[name='useValue']").focus();
				layer.close(x);
				return null;
			}
			arr1.push({useValue:name1,useExplain:area,id:id,fkGardensid:lawnArea});
		}
		var t2=$("#herbal tr:gt(0)");
		var arr2=new Array();
		for(var i=0;i<t2.length;i++){
			var v=t2[i];
			var area=$(v).find("input[name='useExplain']").val();
			var name1=$(v).find("input[name='useValue']").val();
			var id=$(v).find("input[name='id']").val();
			var herbaceousPlants=$("#entityId_herbaceousPlants").val();
			if (!testNum(name1)) {
				layer.msg("草本植物中第" + (i + 1) + "行棵木数量请输入数值");
				$(v).find("input[name='useValue']").focus();
				layer.close(x);
				return null;
			}
			arr2.push({useValue:name1,useExplain:area,id:id,fkGardensid:herbaceousPlants});
		}
		var t3=$("#woody tr:gt(0)");
		var arr3=new Array();
		for(var i=0;i<t3.length;i++){
			var v=t3[i];
			var area=$(v).find("input[name='useExplain']").val();
			var name1=$(v).find("input[name='useValue']").val();
			var id=$(v).find("input[name='id']").val();
			var ligneousPlants=$("#entityId_ligneousPlants").val();
			if (!testNum(name1)) {
				layer.msg("灌木植物中第" + (i + 1) + "行棵木数量请输入数值");
				$(v).find("input[name='useValue']").focus();
				layer.close(x);
				return null;
			}
			arr3.push({useValue:name1,useExplain:area,id:id,fkGardensid:ligneousPlants});
		}
		var t4=$("#trees tr:gt(0)");
		var arr4=new Array();
		for(var i=0;i<t4.length;i++){
			var v=t4[i];
			var area=$(v).find("input[name='useExplain']").val();
			var name1=$(v).find("input[name='useValue']").val();
			var id=$(v).find("input[name='id']").val();
			var treesPlants=$("#entityId_treesPlants").val();
			if (!testNum(name1)) {
				layer.msg("乔木植物中第" + (i + 1) + "行棵木数量请输入数值");
				$(v).find("input[name='useValue']").focus();
				layer.close(x);
				return null;
			}
			arr4.push({useValue:name1,useExplain:area,id:id,fkGardensid:treesPlants});
		}
		var gid = $("#gardensForm #entityId_gid").val();
		//附件json数组
		var fileList="";
		//建筑id
		var fkProjectid=parent.parent.projectID;
		//建造景观文本
		var buildingScenery=$("input[name='buildingScenery']").val();
		//附件
		fileList=fileList+$("#fileJz").val();
		//人造景观文本
		var manMadeScenery=$("input[name='manMadeScenery']").val();
		//附件
		fileList=fileList+$("#fileRz").val();
		//水系景观文本
		var riverSystemScenery=$("input[name='riverSystemScenery']").val();
		//附件
		fileList=fileList+$("#fileSx").val();
		if(isEdit=='no'){
			if(arr1.length==0 && arr2.length==0 && arr3.length==0 &&　arr4.length==0 && buildingScenery=="" &&manMadeScenery=="" && riverSystemScenery==""){
				alert("请先添加数据！");
				layer.close(x);
				return null;
			}
		}
		return {
				id:gid,
				lawnAreaList:arr1,
				herbaceousPlantsList:arr2,
				ligneousPlantsList:arr3,
				treesPlantsList:arr4,
				buildingScenery:buildingScenery,
				manMadeScenery:manMadeScenery,
				riverSystemScenery:riverSystemScenery,
				fkProjectid:fkProjectid,
				fileList:"["+fileList+"]",
				opt:optLandScape,
				delLandIds:delLandIds,
				fIds:landFileList
			};
	}
	
	//回调函数
	function successLandScape(data,status){
		if (data.data == "success") {
			layer.alert("保存成功！",{
				offset:'20%',
				shade:[0.1,'#fff']
			},function(){
				location.reload();
			});
			layer.close(x);
			
		} else {
			layer.alert('保存失败！');
			
		}
	}
	
	
	
</script>
</head>
<body>
<form class="cmxform" id="gardensForm" method="post" action="gardensAfforest/addGardensAfforest">
	<div style="padding:0px 20px">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h5 class="panel-title">基本信息</h5>
			</div>
			<div class="panel-body">
				<!-- 地被植物 -->
				<div class="style_box3" id="lawn">
					<table cellpadding="10" cellspacing="5" class="mytable" id="lawnArea" >
						<tr style="border-bottom:1px solid gray">
							<td width="75" colspan="6"><span class="style_btn" style="margin-right:10px">地被植物</span>
							<a class="btn btn-danger radius addbtn addbtn"
								 onclick="addTrLand(this,'useExplain','useValue')"> 添加</a>
							</td>
							<!-- <td colspan="5"><a class="btn btn-danger radius addbtn addbtn"
								 onclick="addTrLand(this,'useExplain','useValue')"> 添加</a></td> -->
						</tr>
					</table>
				</div>

				<!-- 草本植物-->
				<!-- <div class="style_box3" id="herb">
					<table cellpadding="10" cellspacing="5" class="mytable" id="herbal">
						<tr style="border-bottom:1px solid gray">
							<td width="75"><span class="style_btn">草本植物</span>
							</td>
							<td colspan="5"><a class="btn btn-danger radius addbtn addbtn"
								 onclick="addTrLand(this,'useExplain','useValue')"> 添加</a></td>
						</tr>
					</table>
				</div> -->
				<!-- 灌木植物 -->
				<div class="style_box3">
					<table cellpadding="10" cellspacing="5" class="mytable" id="woody" width="100%">
						<tr style="border-bottom:1px solid gray">
							<td width="75" colspan="6"><span class="style_btn" style="margin-right:10px">灌木植物</span>
							<a class="btn btn-danger radius addbtn"
								 onclick="addTrLand(this,'useExplain','useValue')"> 添加</a>
							</td>
						</tr>
					</table>
				</div>
				<!-- 乔木 -->
				<div class="style_box3">
					<table cellpadding="10" cellspacing="5" class="mytable" id="trees">
						<tr style="border-bottom:1px solid gray">
							<td width="75" colspan="6"><span class="style_btn" style="margin-right:10px">乔木植物</span>
							<a class="btn btn-danger radius addbtn"
								 onclick="addTrLand(this,'useExplain','useValue')"> 添加</a>
							</td>
							<!-- <td colspan="5"><a class="btn btn-danger radius addbtn"
								 onclick="addTrLand(this,'useExplain','useValue')"> 添加</a></td> -->
						</tr>
					</table>
				</div>
				<!-- 园林景观 -->
				<div class="style_box3">
					<table cellpadding="10" cellspacing="5" class="mytable" >
						<tr style="border-bottom:1px solid gray">
							<td colspan="2"><span class="style_btn">园林景观</span>
							</td>
						</tr>
						<tr id="landScape" style="display:none">
							<td width="75" class="td-right">景观</td>
							<td>
								<select class="js-example-placeholder-single" name="landScapeType" id="landScapeType" style="width:135px;" >
									<option value="0">建筑景观</option>
									<option value="1">人造景观</option>
									<option value="2">水系景观</option>
								</select>
								<a class="btn btn-danger radius addbtn"  onclick="showScapeTr()"> 添加</a>
							</td>
						</tr>
						<!-- 上传图片插件 -->
						
						<tr id="jianzhu" style="display:none;">
							<td width="75" class="td-right">
								建筑景观
								
							</td>
							<td>
								<input name="buildingScenery" value=""/> <a href="javascript:void(0)" onclick="hideTrLand(0)"><i class="icon-fullscreen"></i></a>
								<!-- id的value唯一  name 不能变-->
								<jsp:include page="../p_utilePage/Article-agile.jsp">
									<jsp:param value="fileJz" name="id" />
									<jsp:param value="imgJz" name="smallImgId" />
									<jsp:param value="建筑" name="articleId" />
								</jsp:include>
								
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<div id="imgJz"></div>
							</td>
						</tr>
						
						<!-- 上传图片插件 -->
						
						<tr id="renzao" style="display:none;">
							<td width="75" class="td-right">人造景观
								
							</td>
							<td>
								<input name="manMadeScenery" /> <a href="javascript:void(0)" onclick="hideTrLand(1)"><i class="icon-fullscreen"></i></a>
								<jsp:include page="../p_utilePage/Article-agile.jsp">
									<jsp:param value="fileRz" name="id" />
									<jsp:param value="imgRz" name="smallImgId" />
									<jsp:param value="人造" name="articleId" />
								</jsp:include>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<div id="imgRz"></div>
							</td>
						</tr>
						
						<!-- 上传图片插件 -->
						
						<tr id="shuixi" style="display:none;">
							<td class="td-right">水系景观
								
							</td>
							<td>
								<input name="riverSystemScenery" /> <a href="javascript:void(0)" onclick="hideTrLand(2)"><i class="icon-fullscreen"></i></a>
								<jsp:include page="../p_utilePage/Article-agile.jsp">
									<jsp:param value="fileSx" name="id" />
									<jsp:param value="imgSx" name="smallImgId" />
									<jsp:param value="水系" name="articleId" />
								</jsp:include>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<div id="imgSx"></div>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
		<input type="hidden" id="entityId_lawnArea" name="lawnArea" />
		<input type="hidden" id="entityId_herbaceousPlants" name="herbaceousPlants" />
		<input type="hidden" id="entityId_ligneousPlants" name="ligneousPlants" />
		<input type="hidden" id="entityId_treesPlants" name="treesPlants" />
		<input type="hidden" id="entityId_gid" name="id" />
		<div style="width:100%;text-align:center; padding-top:20px">
			<div id="btn_div1">
				<button class="btn btn-danger radius my-btn"
					onclick="saveLandScape(0)" type="button">提交</button>
				<button class="btn btn-danger radius my-btn"
					onclick="saveLandScape(1)" type="button">保 存</button>
				<a class="btn btn-default radius" onClick="resetForms('gardensForm');">
					重置 </a>
				<br />
			</div>
			<div id="btn_div2" style="display:none;">
				<shiro:hasPermission name="permission:edit">
					<button id="modifyBtn" type="button" class="btn btn-danger radius my-btn"
						onclick="saveLandScape(3)">启用编辑</button>
					<button class="btn btn-danger radius my-btn hidbtn"
						onclick="saveLandScape(2)" type="button">保存修改</button>
					<a class="btn btn-default radius hidbtn" onClick="resetForms('gardensForm');">
						重置 </a>	
				</shiro:hasPermission>
			</div>
		</div>
	</div>

	<div style="display:none"></div>
</form>
<script type="text/javascript">

	function addTrLand(obj, name1, num1) {
		var type = $(obj).parent().prev().text().trim();
		var name = "植木名称";
		var num = "面积数量";
		if (type == "地被植物") {
			name = "植木名称";
			num = "面积数量";
		} else  {
			name = "植木名称";
			num = "棵木数量";
		} 
		if(type == "地被植物"){
			var html = "<tr><td width=\"75\" class=\"td-right\"><span>"
				+ name
				+ "</span></td><td width=\"320\"><input type=\"type\"id=\"\"name=\""+name1+"\"value=\"\"/></td><td width=\"75\" class=\"td-right\"><span>"
				+ num
				+ "</span></td><td><input type=\"type\"id=\"\"name=\""+num1+"\"value=\"\"/> ㎡ "
				+ "<a href=\"javascript:void(0)\"onclick=\"delTrLand(this)\"><i class=\"icon-fullscreen\"></i></a></td></tr>";
		}else{
			var html = "<tr><td width=\"75\" class=\"td-right\"><span>"
				+ name
				+ "</span></td><td width=\"320\"><input type=\"type\"id=\"\"name=\""+name1+"\"value=\"\"/></td><td width=\"75\" class=\"td-right\"><span>"
				+ num
				+ "</span></td><td><input type=\"type\"id=\"\"name=\""+num1+"\"value=\"\"/> 株 "
				+ "<a href=\"javascript:void(0)\"onclick=\"delTrLand(this)\"><i class=\"icon-fullscreen\"></i></a></td></tr>";
		}
		
		$(obj).parent().parent().parent().append(html);
	}
	//存储将要删除的id，传到后台删除
	var delLandIds = new Array();
	function delTrLand(obj) {
		var id = $(obj).attr("data-id");
		if(id!=""&& id!=null){
			delLandIds.push(id);
			$(obj).parent().parent().remove();
			layer.msg("点击保存后，将彻底删除该条数据！");
		}else{
			$(obj).parent().parent().remove();
		}
		
	}
	
	/* function delTrLand(obj){
		var id = $(obj).attr("data-id");
		layer.confirm('确定删除该条信息吗？', {
			btn : [ '确定', '取消' ] //按钮
		}, function() {
			//点击确定时，删除该条数据
			if (id== undefined || id == "") {
				$(obj).parent().parent().remove();
				layer.msg("删除成功");
			} else {
				if(id!=null && id!=undefined && id != ""){
					$.getJSON("gardensAfforest/delLand", {id:id}, function(data, status) {
						if (status == "success") {
							layer.msg("删除成功！");
							$(obj).parent().parent().remove();
						}
					});
				}
			}
		}, function() {
			layer.close();
		});
	} */
	
	

</script>
<link rel="stylesheet" type="text/css"
	href="js/webuploader-0.1.5/webuploader.css" />
<script type="text/javascript" src="js/webuploader-0.1.5/webuploader.js"></script>
<script type="text/javascript" src="js/sharefunction.js"></script>
</body>
</html>
